from django.urls import path

from . import views
from .views import RegisterView,ActiveView,LoginView

app_name = 'goods'

urlpatterns = [
    # 首页
    path("", views.index, name='index'),

    #注册
    path("register", RegisterView.as_view(),name="register"),
    # 账户激活
    path('active/<token>', ActiveView.as_view(), name="active"),
    # 登录
    path("login", LoginView.as_view(), name="login"),
    # 报错页面
    path("not_page/",views.page_not_found, name="not_page"),
    path("505",views.page_not_found, name='505'),
    # 短信验证页面
    path('res_phone',views.res_phone,name='res_phone'),
    # 发送短信
    path('phone/',views.sms_send, name='phone'),
    # 短信验证
    path('re_phone/',views.sms_check ,name='re_phone'),

    # 图片
    path('img_refresh/',views.img_refresh, name ='img_refresh'),
    # 验证
    path('img_check/',views.img_check,name='img_check'),

    path('puter/', views.puter, name='puter'),# 要删除的 图文验证

    #登录
    #path('login/',views.render,name='login'),
    #处理用户提交的数据
    #path(r"register_handle$",views.register_handle,name='register_handle'),

]




